import {Route} from '@srcTypes/route';
import {requestLogger} from '@srcMiddleware/request-logger';
import {downloadFile, upload} from '@srcHandlers/file/file';

export const fileRoutes: Route[] = [
    {
        method: 'post',
        path: '/file/v1/upload',
        middleware: [requestLogger],
        handler: upload,
    },
    {
        method: 'get',
        path: '/file/v1/downloadFile',
        middleware: [requestLogger],
        handler: downloadFile,
    },
];
